package ch.connection;

import ch.mailbox.Message;

public class Dele implements Control {


	@Override
	public Object verify(String data, Object obj) {
		Message qtc = ((ch.mailbox.User)obj).getMessage( Integer.parseInt( data ) );
		System.out.println( data );
		if( qtc == null ) {
			return null;
		}
		qtc.delete();
		return obj;
	}
	
	@Override
	public String getResponse( Object qtc ) {
			return null;
	}

}
